package com.vogue.supplymall.order.domain.service.impl;

import com.vogue.ssm.database.dao.BaseDao;
import com.vogue.supplymall.order.domain.dao.OrderSellerDao;
import com.vogue.supplymall.order.domain.model.OrderSeller;
import com.vogue.supplymall.order.domain.service.OrderSellerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * The type Order seller service.
 *
 * @aouthor: zhangliang
 * @date: Create in 2018-01-23
 */
@Service("orderSellerService")
public class OrderSellerServiceImpl extends BaseServiceImpl<OrderSeller, Long> implements OrderSellerService {

    @Resource
    private OrderSellerDao orderSellerDao;

    /**
     * Instantiates a new Order seller service.
     *
     * @param baseDao the base dao
     */
    public OrderSellerServiceImpl(BaseDao<OrderSeller, Long> baseDao) {
        super(baseDao);
    }

    @Override
    public OrderSeller addOrderSeller(OrderSeller orderSeller) {
        return orderSellerDao.save(orderSeller);
    }
}
